<!DOCTYPE html>
<html>
<head>
	<title></title>
</head>
<body>
	<canvas id="canvas" width="500" height="500" style="border:1px solid #000"></canvas>

</body>
</html>

<script type="text/javascript">
	var canvas = document.getElementById('canvas');
	var context = canvas.getContext('2d');
	context.fillStyle='#eeeeef';
	context.fillRect(0,0,500,500);

	context.translate(250,50);
	context.fillStyle= 'rgb(255,0,0,0.25)';
	for (var i = 0; i <= 50; i++){
		context.translate(25,25)
		context.scale(0.95,0.95)
		context.rotate(Math.PI/10)
		context.fillRect(0,0,100,50)
	}
	</script>